package com.sbm.merge.设计模式.adapter;

public class EuropeanChargerAdapter implements UniversalCharger{

    EuropeanCharger europeanCharger;


    public EuropeanChargerAdapter(EuropeanCharger europeanCharger) {
        this.europeanCharger = europeanCharger;
    }

    @Override
    public int charge() {
        int i = europeanCharger.supply220V();
        System.out.println(" 统一适配返回 120v");
        return i/2 +10;
    }
}
